  <!-- 购物车 -->
  <div class="float-aside" style="display:none;z-index:999999;">
    <div class="buycar-box">
      <div class="top">购物车<a href="javascript:void(0);" class="icon close"></a></div>
      <div class="con js_topCartList">
      </div>
      <!--end buycar-list-->
    </div>
  </div>
  <!-- 购物车 -->
  <div class="page">
    <div id="header">
      <div class="search-onTop hidden"><input type="text" value="产品搜索" class="txt1"/></div>
      <div class="head-inner inner clearfix">
        <h1 class="logo"><a href="{AnUrl('')}" target="_blank"><img src="{$smarty.const.SITE_URL}/images/icon-x1/logo-x1.png" style="width:112px;height:36px;"></a></h1>
        <div class="head-right clearfix">
          <div class="nav js_topNav">
            <ul class="clearfix">
              <li {if !$module && $controller == 'index' && $action == 'index'}class="curr"{/if}><a href="{AnUrl('')}">首页</a></li>
              <li data-id="1" class="js_pdtNavBox hidden pdt-nav-box"><a href="javascript:void(0);">产品 <i class="arrow"></i></a></li>
              <li data-id="2" class="pdt-nav-hidden {if $url_dirs[0] == 'm100' || $url_dirs[0] == 'newglass'}curr{/if}"><a href="javascript:void(0);">智能眼镜</a></li>
              <li data-id="3" class="pdt-nav-hidden {if $url_dirs[0] == 'x330' || $url_dirs[0] == 'd600'}curr{/if}"><a href="javascript:void(0);">净化器</a></li>
              <li data-id="4" class="pdt-nav-hidden {if $url_dirs[0] == 'newifi'}curr{/if}"><a href="javascript:void(0);">路由器</a></li>
              <li data-id="5" class="pdt-nav-hidden {if $url_dirs[0] == 'mengqibi'}curr{/if}"><a href="javascript:void(0);">萌奇笔</a></li>
              <li data-id="6" class="pdt-nav-hidden {if $url_dirs[0] == 'reston'}curr{/if}"><a href="javascript:void(0);">智能睡眠带</a></li>
              <!-- <li><a href="javascript:void(0);">时尚生活</a></li> -->
              <!-- <li {if $module == 'goods'}class="curr"{/if} ><a href="{AnUrl('goods')}">在线商城</a></li> -->
              <li><a href="{$smarty.const.BBS_URL}">社区</a></li>
              <li {if $top_nav_curr == 'download'}class="curr"{/if}><a href="{AnUrl('topic/download/index')}">下载</a></li>
            </ul>
            <div class="nav-curr-bar js_navCurrBar"></div>
          </div>
          <!--end nav-->
          <div class="operation clearfix">
            {if $user_id}
              <span class="user-logined-box"><i class="icon user"></i>
                <i class="user-logined"><img src="{user_helper::avatar($user_id)}"></i>
                <div class="logined-infor hidden">
                  <span class="arrow"></span>
                  <ul>
                    <li><a href="{AnUrl('user/setting')}">{user_helper::display_name($user_id)}</a></li>
                    {if $user_info.email == '' && $user_info.mobile == ''}
                    <li><a href="{AnUrl('user/setting/account_safety')}">完善资料</a></li>
                    {/if}
                    {if user_helper::have_privilege($user_id)}
                      <li><a href="{AnUrl('admin')}">管理中心</a></li>
                    {/if}
                    <li><a href="{$smarty.const.BBS_URL}/home.php?mod=space&do=pm" class="jsMyPm" target="_blank">我的消息</a></li>
                    <li><a href="{AnUrl('order')}">我的订单</a></li>
                    <li style="border-bottom:none;"><a href="{AnUrl('user/logout')}">退出登录</a></li>
                  </ul>
                </div>
              </span>
            {else}
              <a href="{AnUrl('user/login')}"><i class="icon user"></i></a>
            {/if}
            <a href="javascript:void(0);"><i class="icon search"></i></a>
            {$cart_num = cart_helper::get_cart_num(1)}
            <a href="javascript:void(0);"><i class="icon buy-car"></i>{if $cart_num>0}<em class="buy-car-num js_buyCartNumber">{$cart_num}</em>{/if}</a>
          </div>
        </div>
      </div>
      <div class="megamenu_wrapper">
        <div class="search-box">
          <div class="inner">
            <input type="text" value="" class="txt over js_searchInput" autocomplete="off" />
            <p class="condition">饮食、睡眠、运动，生活更美好</p>
          </div>
        </div>
        <div class="search-onBottom hidden"><input type="text" value="产品搜索" class="txt1"/><a href="javascript:void(0);" class="close"></a></div>

        <div class="product-nav-wrap hidden js_pdtSubBox" data-id="1">
          <div class="product-nav">

            <div class="list clearfix js_SubPdtScroll hidden">
              <dl>
                <dt><a href="{AnUrl('topic/m100')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/top_nav_m100.png"></a></dt>
                <dd><a href="{AnUrl('topic/m100')}" target="_blank">{topic_config::$topic_list['m100']}</a></dd>
              </dl>
              {* <dl>
                <dt><a href="{AnUrl('topic/newglass')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/C1.png"></a></dt>
                <dd><a href="{AnUrl('topic/newglass')}" target="_blank">{topic_config::$topic_list['newglass']}</a></dd>
              </dl> *}
              <dl>
                <dt><a href="{AnUrl('events/newglass')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/C1.png"></a></dt>
                <dd><a href="{AnUrl('events/newglass')}" target="_blank">{topic_config::$topic_list['newglass']}</a></dd>
              </dl>
            </div>

            <div class="list clearfix js_SubPdtScroll hidden">
              <dl>
                <dt><a href="{AnUrl('topic/d600')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/D600.png"></a></dt>
                <dd><a href="{AnUrl('topic/d600')}" target="_blank">{topic_config::$topic_list['d600']}</a></dd>
              </dl>
              <dl>
                <dt><a href="{AnUrl('goods/9')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/x360.png"></a></dt>
                <dd><a href="{AnUrl('goods/9')}" target="_blank">{topic_config::$topic_list['x360']}</a></dd>
              </dl>
              <dl>
                <dt><a href="{AnUrl('topic/x330')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/x330.png"></a></dt>
                <dd><a href="{AnUrl('topic/x330')}" target="_blank">{topic_config::$topic_list['x330']}</a></dd>
              </dl>
              <dl>
                <dt><a href="{AnUrl('goods/10')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/filter.png"></a></dt>
                <dd><a href="{AnUrl('goods/10')}" target="_blank">{topic_config::$topic_list['filter']}</a></dd>
              </dl>
            </div>

            <div class="list clearfix js_SubPdtScroll hidden">
              <dl>
                <dt><a href="{AnUrl('topic/newifi')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/newifi-mini.png"></a></dt>
                <dd><a href="{AnUrl('topic/newifi')}" target="_blank">{topic_config::$topic_list['newifi']}</a></dd>
              </dl>
              <!-- <dl>
                <dt><a href="http://newifi.newbd.com/"><img src="{$smarty.const.STATIC_URL}/images/product-nav-img3.png"></a></dt>
                <dd><a href="http://newifi.newbd.com/">newifi</a></dd>
              </dl> -->
            </div>
            <div class="list clearfix js_SubPdtScroll hidden">
              <dl>
                <dt><a href="{AnUrl('topic/mengqibi')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/mengqibi.png"></a></dt>
                <dd><a href="{AnUrl('topic/mengqibi')}" target="_blank">{topic_config::$topic_list['mengqibi']}</a></dd>
              </dl>
            </div>
            <div class="list clearfix js_SubPdtScroll hidden">
              <dl>
                <dt><a href="{AnUrl('topic/reston')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/nav_reston.png"></a></dt>
                <dd><a href="{AnUrl('topic/reston')}" target="_blank">{topic_config::$topic_list['reston']}</a></dd>
              </dl>
            </div>
            <div class="scroll-bar js_subScrollBar"></div>
            <ul class="product-sub-nav clearfix js_pdtSubNavList">
              <li><a href="javascript:void(0);">智能眼镜</a></li>
              <li><a href="javascript:void(0);">智能空气净化器</a></li>
              <li><a href="javascript:void(0);">路由器</a></li>
              <li><a href="javascript:void(0);">萌奇笔</a></li>
              <li><a href="javascript:void(0);">睡眠带</a></li>
            </ul>
          </div>
        </div>

        <div class="product-nav-wrap hidden js_pdtSubBox" data-id="2">
          <div class="product-nav">
            <div class="list clearfix">
              <dl>
                <dt><a href="{AnUrl('topic/m100')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/top_nav_m100.png"></a></dt>
                <dd><a href="{AnUrl('topic/m100')}" target="_blank">{topic_config::$topic_list['m100']}</a></dd>
              </dl>
              {* <dl>
                <dt><a href="{AnUrl('topic/newglass')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/C1.png"></a></dt>
                <dd><a href="{AnUrl('topic/newglass')}" target="_blank">{topic_config::$topic_list['newglass']}</a></dd>
              </dl> *}
              <dl>
                <dt><a href="{AnUrl('events/newglass')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/C1.png"></a></dt>
                <dd><a href="{AnUrl('events/newglass')}" target="_blank">{topic_config::$topic_list['newglass']}</a></dd>
              </dl>
            </div>
          </div>
        </div>

        <div class="product-nav-wrap hidden js_pdtSubBox" data-id="3">
          <div class="product-nav">
            <div class="list clearfix">
              <dl>
                <dt><a href="{AnUrl('topic/d600')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/D600.png"></a></dt>
                <dd><a href="{AnUrl('topic/d600')}" target="_blank">{topic_config::$topic_list['d600']}</a></dd>
              </dl>
              <dl>
                <dt><a href="{AnUrl('goods/9')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/x360.png"></a></dt>
                <dd><a href="{AnUrl('goods/9')}" target="_blank">{topic_config::$topic_list['x360']}</a></dd>
              </dl>
              <dl>
                <dt><a href="{AnUrl('topic/x330')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/x330.png"></a></dt>
                <dd><a href="{AnUrl('topic/x330')}" target="_blank">{topic_config::$topic_list['x330']}</a></dd>
              </dl>
              <dl>
                <dt><a href="{AnUrl('goods/10')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/filter.png"></a></dt>
                <dd><a href="{AnUrl('goods/10')}" target="_blank">{topic_config::$topic_list['filter']}</a></dd>
              </dl>
            </div>
          </div>
        </div>

        <div class="product-nav-wrap hidden js_pdtSubBox" data-id="4">
          <div class="product-nav">
            <div class="list clearfix">
              <dl>
                <dt><a href="{AnUrl('topic/newifi')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/newifi-mini.png"></a></dt>
                <dd><a href="{AnUrl('topic/newifi')}" target="_blank">{topic_config::$topic_list['newifi']}</a></dd>
              </dl>
              <!-- <dl>
                <dt><a href="http://newifi.newbd.com/"><img src="{$smarty.const.STATIC_URL}/images/product-nav-img3.png"></a></dt>
                <dd><a href="http://newifi.newbd.com/">newifi</a></dd>
              </dl> -->
            </div>
          </div>
        </div>
        
        <div class="product-nav-wrap hidden js_pdtSubBox" data-id="5">
          <div class="product-nav">
            <div class="list clearfix">
              <dl>
                <dt><a href="{AnUrl('topic/mengqibi')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/mengqibi.png"></a></dt>
                <dd><a href="{AnUrl('topic/mengqibi')}" target="_blank">{topic_config::$topic_list['mengqibi']}</a></dd>
              </dl>
            </div>
          </div>
        </div>

        <div class="product-nav-wrap hidden js_pdtSubBox" data-id="6">
          <div class="product-nav">
            <div class="list clearfix">
              <dl>
                <dt><a href="{AnUrl('topic/reston')}" target="_blank"><img src="{$smarty.const.STATIC_URL}/images/product-nav/nav_reston.png"></a></dt>
                <dd><a href="{AnUrl('topic/reston')}" target="_blank">{topic_config::$topic_list['reston']}</a></dd>
              </dl>
            </div>
          </div>
        </div>

        <!--end product-nav-wrap-->
      </div>
    </div>
    <!--end header-->
<script>
// 高亮导航动画
$('#header .js_topNav li').on('mouseenter', function(evt, data){

  var w = $(this).width(),
    left = 0,
    tmpObj = $(this);
  // 计算left
  while(tmpObj.prev().length) {
    tmpObj = tmpObj.prev();
    if(tmpObj.is(':visible')) {
      left += tmpObj.width() + parseFloat(tmpObj.css('margin-right'));
    }
  }
  $('.js_navCurrBar').stop(true).animate({ width:w+'px', left:left+'px' }, 85);
  $('.js_topNav li a.curr-color').removeClass('curr-color');
  $(this).find('a').addClass('curr-color');
  $(this).siblings().find('.arrow').hide();
  $(this).find('.arrow').show();


  // 显示二级菜单
  var dataId = parseInt($(this).attr('data-id'));
  var isInit = data && data.isInit;
  if(dataId && !isInit) {

    // 隐藏搜索框
    var hideSearchBox = false;
    if(Modernizr.csstransitions) {
      if($('.search-box').height() > 0) {
        hideSearchBox = true;
      }
    } else {
      if($('.megamenu_wrapper .search-box:visible').length) {
        hideSearchBox = true;
      }
    }
    if(hideSearchBox) $('.operation .search').trigger('click', { quickHide: true });

    var subBox = $('.js_pdtSubBox[data-id="'+dataId+'"]');
    subBox.show().siblings('.js_pdtSubBox').hide();
    if(subBox.find('.js_SubPdtScroll').length) {
      $('.js_subScrollBar').width(0);
      subBox.find('.js_pdtSubNavList li:eq(0)').addClass('curr').siblings().removeClass('curr');
      subBox.find('.js_SubPdtScroll:eq(0)').show().siblings('.js_SubPdtScroll').hide();
      //$('.js_pdtSubNavList li:eq(0)').trigger('mouseenter');
    }
  } else {
    $('.js_pdtSubBox').hide();
  }

});
$('#header').on('mouseleave', function(e){
  var currLi = $('#header .js_topNav li.curr');
  if(!currLi.length) currLi = $('#header .js_topNav li:eq(0)');
  currLi.trigger('mouseenter');
});
$('.js_pdtSubBox').on('mouseenter', function(e){
  var dataId = parseInt($(this).attr('data-id'));
  var liObj = $('#header .js_topNav li[data-id="'+dataId+'"]');
  if(liObj.length) liObj.trigger('mouseenter');
}).on('mouseleave', function(){
  $('.js_topNav').trigger('mouseleave');
});

// 二级菜单的滚动
$('.js_pdtSubNavList li').on('mouseenter', function(){
  var w = $(this).children('a').width(),
    left = 0,
    tmpObj = $(this);
  // 计算left
  while(tmpObj.prev().length) {
    tmpObj = tmpObj.prev();
    if(tmpObj.is(':visible')) {
      left += tmpObj.width();
    }
  }
  left += ($(this).width() - w)/2;
  $('.js_subScrollBar').stop(true).animate({ width:w+'px', left:left+'px' }, 85);
  var idx = $(this).index();
  $('.js_SubPdtScroll:eq('+idx+')').show().siblings('.js_SubPdtScroll').hide();
  $(this).removeClass('curr').siblings().removeClass('curr');
});

$('body').on('mouseover', function(e){
  var t = $(e.target);
  if(!t.is('#header') && !t.closest('#header').length) {
    $('.js_pdtSubBox').hide();
  }
});

// $(function(){
//   $('#header .js_topNav li.curr').trigger('mouseenter');
// });

$('.user-logined-box').on('mouseenter', function(){
  $('.user-logined-box .logined-infor').show();
}).on('mouseleave', function(){
  $('.user-logined-box .logined-infor').hide();
});


// 默认高亮
(function(){

  $(window).on('resize', function(){
    var ww = $(window).width();
    if(ww < 1240) {
      $('#header .js_topNav').addClass('nav2');
    } else {
      $('#header .js_topNav').removeClass('nav2');
    }
  });
  $(window).trigger('resize');

  var currLi = $('#header .js_topNav li.curr');
  if(!currLi.length) currLi = $('#header .js_topNav li:eq(0)');
  currLi.trigger('mouseenter', { isInit: true });

  //ajax获取用户消息数
  $.post(
    "{AnUrl('user/setting/get_pm_sum')}",
    {  },
    function(data) {
      if(data.info == 'ok') {
        if(data.sum) {
          $('.jsMyPm').append('<em style="color:#c50e1a">('+data.sum+')</em>');
        }
      }
    },'json');

  // 搜索动画
  //搜索
  var searchH = $('.search-box').height();
  $('.search-box').css({
     height:0,
     rotateX: '90deg',
     opacity:0,
     display: 'none'
  });
  $('#container').css({
    'position': 'relative'
  });
  $('.operation .search').click(function(evt, data){
    if(Modernizr.csstransitions) {
      if(window._topSearchBoxAniLock == true) return;
      window._topSearchBoxAniLock = true;
      $('.search-box').show();
      if($('.search-box').height() > 0) {
        var duration = data && data.quickHide ? 0 : 400;
        $('.search-box').transition({
          queue: false,
          opacity:0,
          easing: 'easeInOutExpo',
          height: 0,
          rotateX: '90deg',
          duration: duration,
          complete: function(){
            $('.search-box').hide();
            window._topSearchBoxAniLock = false;
          }
        });
        //$('#container').transition({ y: 0 }, 400, 'easeInOutExpo');
      } else {
        $('.search-box').transition({
          opacity:1,
          queue: false,
          easing: 'easeInOutExpo',
          height: searchH,
          rotateX: '0deg',
          duration: 600,
          complete: function(){
            $('.js_searchInput').focus();
            window._topSearchBoxAniLock = false;
          }
        });
        //$('#container').transition({ y: '220px' }, 600, 'easeInOutExpo');
      }
    } else {
      $('.search-box').css({
        opacity: 1,
        height: searchH,
        rotateX: '0deg'
      });
      if($('.megamenu_wrapper .search-box:visible').length) {
        if(data && data.quickHide) {
          $('.megamenu_wrapper .search-box').hide();
        } else {
          $('.megamenu_wrapper .search-box').slideUp();
        }
        $(this).parent().removeClass('curr');
      } else {
        $(this).parent().addClass('curr');
        $('.megamenu_wrapper .search-box').slideDown();
        $('.js_searchInput').focus();
      }

    }
  });

  // 默认搜索框收起
$('body').on('click', function(e){
  if(!$(e.target).is('.megamenu_wrapper .search-box') && !$(e.target).closest('.megamenu_wrapper .search-box').length) {
    // 隐藏
    var hideSearchBox = false;
    if(Modernizr.csstransitions) {
      if($('.search-box').height() > 0) {
        hideSearchBox = true;
      }
    } else {
      if($('.megamenu_wrapper .search-box:visible').length) {
        hideSearchBox = true;
      }
    }
    if(hideSearchBox) $('.operation .search').trigger('click', { quickHide: true });
  }
});

  $(function(){
    //搜索事件
    $('.js_searchInput').keydown(function(e){
      if (e.keyCode == 13) {
        var val = $(this).val();

        if (!val) {
          showMsg('请输入要搜索的商品信息');
          return false;
        }
        window.location.href=siteUrl+'/goods?goods_title='+val;
      }
    })

    $('.operation .buy-car, .operation .js_buyCartNumber').click(function(e){
      e.stopPropagation();
      $(this).parent().addClass('curr');
      var cartObj = $('.float-aside .buycar-box');
      var cartParent = cartObj.parent();

      if(cartParent.is(':visible')) {
        $('.float-aside .buycar-box .close').trigger('click');
        return;
      }

      cartParent.css({
        'display': 'block',
        'right': '-360px'
      });
      cartObj.show();
      /* $('.page').animate({
        right:'360px',
      }, 600); */
      cartParent.animate({
        right: 0
      }, 400, function(){
        setTimeout(function(){
          $(window).trigger('resize');
        }, 10);
      });

      var url = siteUrl+'/cart/check_cart_list';
      $.post(url, {  }, function(json){
        if (json.info == 'ok') {
          $('.js_topCartList').html(json.cart_list);
          resizeCartFn();
        }
      }, 'json');
    });
    $('.float-aside .buycar-box .close').click(function(e){
      e.stopPropagation();
      /* var num1=$('.float-aside .buycar-box').width()-($(window).width()-$('.inner').width())/2+'px'; */
      $('.buy-car').parent().removeClass('curr');
      /* $('.page').animate({
        right:'0',
        },300); */

      var cartObj = $('.float-aside .buycar-box');
      var cartParent = cartObj.parent();
      cartParent.animate({
        right: '-360px'
      }, 300, function(){
        $(this).hide()
      });
    });

    $('.float-aside .buycar-box').click(function(e){
      e.stopPropagation();
    });

    $('body').click(function(){
      if($('.float-aside .buycar-box:visible').length) {
        $('.float-aside .buycar-box .close').trigger('click');
        return;
      }
    });


    $('.product-nav dl').hover(function(){
      $(this).toggleClass('curr');
    });

    window.resizeCartFn = function(){
      $('.float-aside,.float-aside .buycar-box').height($(window).height());
      if(!$('.js_topCartList .middle img').length) return;
      var leftH = $('.js_topCartList').height() - $('.js_topCartList .middle').position().top - 150;
      $('.js_topCartList .middle').css({
        top: (leftH/2)+'px'
      });
    }
    $(window).on('resize', function(){
      // banner point位置
      var bottom = $('.star-product li').height()+20;
      $('.paging').css({ bottom:bottom+'px' });
      resizeCartFn();
    });
    $(function(){
      resizeCartFn();
    });
    if($('.inner').width() <= 1010){
      //$('.float-aside .buycar-box').width(194);
    }

    // banner point位置
    var bottom = $('.star-product li').height()+20;
    $('.paging').css({ bottom:bottom+'px' });

    // 添加新商品到购物车
    $('.js_topCartList').on('click', '.js_openLink', function(){
      var href = $(this).data('href');
      window.location.href = href;
    });
    //删除购物车
    $('.js_topCartList').on('click', '.js_topCartDelete', function(){
      var thisDl = $(this).closest('dl');
      var skuId = thisDl.attr('data-sku_id');
      var isPromotion = parseInt(thisDl.data('is_promotion'));
      var url = siteUrl + '/cart/delete_cart';
      $.post(url, { sku_id:skuId, is_promotion:isPromotion }, function(json){
        if (json.info == 'ok') {
          thisDl.remove();
          if (json.num > 0) {
            // 同步删除
            $('.js_cartListTable').find('tr').each(function(){
              var currSkuId = $(this).attr('data-sku_id');
              var currIsPromotion  = $(this).attr('data-is_promotion');
              if (currIsPromotion == isPromotion && skuId == currSkuId) {
                $(this).remove();
              }
            });
            if (isPromotion > 0) {
              $('.js_relationUl').children('li').each(function(){
                var currSkuId = $(this).attr('data-sku_id');
                //var currParentId  = $(this).attr('data-goods_id');
                if (skuId == currSkuId) {
                  $(this).removeClass('current').find('.check-wrap').removeClass('checked');
                  $(this).attr('data-type', 'disabled');
                  $(this).attr('data-sku_id', 0);
                }
              });
            }

            $('.js_cartCount').html(json.count);
            $('.js_topCartNum').html('共计'+json.num+'件商品');
            $('.js_topCartCount').html(json.count);
          } else {
            location.href = location.href;
            $('.js_topCartList').html('<div class="middle">\
            <img src="'+siteUrl+'/images/buy-car.png" width="147" height="255" class="hidden"><img src="'+siteUrl+'/images/buy-car-x2.png" width="115" height="135"><p class="text">您的购物车现在还是空的呢</p>\
          </div>');
          }
        }
      }, 'json');
    });
  });



})();
</script>